package com.wgts.wgts.localbean;

import android.os.Parcel;
import android.os.Parcelable;

public class LocalProductInfo implements Parcelable {
    public int productId;

    public String productName;

    public String productSubtitle;


    public String marketPrice;

    public int updown;

    public String retailPrice;

    public int sellCount;

    public int collected;

    public String productSmallImage;

    public String productUrl;

    public long restTime;

    public int activitySkuId;

    public String status;

    public String productStandard;



    public LocalProductInfo(){};

    protected LocalProductInfo(Parcel in) {
        productId = in.readInt();
        productName = in.readString();
        productSubtitle = in.readString();
        marketPrice = in.readString();
        updown = in.readInt();
        retailPrice = in.readString();
        sellCount = in.readInt();
        collected = in.readInt();
        productSmallImage = in.readString();
        productUrl = in.readString();
        restTime = in.readLong();
        productStandard = in.readString();
    }

    public static final Creator<LocalProductInfo> CREATOR = new Creator<LocalProductInfo>() {
        @Override
        public LocalProductInfo createFromParcel(Parcel in) {
            return new LocalProductInfo(in);
        }

        @Override
        public LocalProductInfo[] newArray(int size) {
            return new LocalProductInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(productId);
        dest.writeString(productName);
        dest.writeString(productSubtitle);
        dest.writeString(marketPrice);
        dest.writeInt(updown);
        dest.writeString(retailPrice);
        dest.writeInt(sellCount);
        dest.writeInt(collected);
        dest.writeString(productSmallImage);
        dest.writeString(productUrl);
        dest.writeLong(restTime);
        dest.writeString(productStandard);
    }


}
